package com.example.cloud.model.system;

import com.example.cloud.model.common.CommonModel;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

/**
 * Created by wangtao on 2018/1/26.
 * 系统参数
 */
@Entity(name = "sys_config")
@Data
@EqualsAndHashCode(callSuper = false)
public class SystemConfig extends CommonModel {
    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    private Long id;
    // 上班时间
    @Column(name = "start_time")
    private String startTime;
    // 下班时间
    @Column(name = "end_time")
    private String endTime;
    // 医生间隔
    @Column(name = "doctor_interval", columnDefinition = "INT DEFAULT 0")
    private Integer doctorInterval;
    // 医生每小时接待新诊
    @Column(name = "doctor_reception_new", columnDefinition = "INT DEFAULT 0")
    private Integer doctorReceptionNew;
    // 医生每小时接待复诊
    @Column(name = "doctor_reception_old", columnDefinition = "INT DEFAULT 0")
    private Integer doctorReceptionOld;
    // 护士间隔
    @Column(name = "nurse_interval", columnDefinition = "INT DEFAULT 0")
    private Integer nurseInterval;
    // 护士每小时接待新诊
    @Column(name = "nurse_reception_new", columnDefinition = "INT DEFAULT 0")
    private Integer nurseReceptionNew;
    // 护士每小时接待复诊
    @Column(name = "nurse_reception_old", columnDefinition = "INT DEFAULT 0")
    private Integer nurseReceptionOld;
    // 主导医护{1：医生 2：护士}
    @Column(name = "lead_care")
    private Integer leadCare;
    // 自动打印小票
    @Column(name = "auto_print", columnDefinition = "INT DEFAULT 0")
    private int autoPrint;
    // 请假提前时间
    @Column(name = "advance_time", columnDefinition = "INT DEFAULT 0")
    private int advanceTime;
    // 患者一周约一次校验
    @Column(name = "check1", columnDefinition = "INT DEFAULT 0")
    private int check1;
    // 账户编号
    @Column(name = "account_id")
    private Long accountId;
    @Column(name = "user_id")
    private Long userId;
    // 账户所属组织机构
    @Column(name = "organ_id")
    private Long organId;
    // 账户所属组织名称
    @Column(name = "organ_name")
    private String organName;
}
